package com.zy.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.zy.entity.EmailUser;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.HashMap;

/**
 * Created with IntelliJ IDEA.
 * @Auther: 杨深俊
 * @Date: 2021/04/07/16:06
 * @Description:
 */
@Repository
@Mapper
public interface EmailUserMapper extends BaseMapper<EmailUser>{
    //查询所有邮件

    IPage<EmailUser> getEmails(IPage<EmailUser> emails, @Param("map") HashMap map);
    //通过id删除邮件
    @Delete("delete from email where id = #{id}")
    void deleteEmail(Integer id);
}
